import Vue from 'vue'
import Router from 'vue-router'
import HomePage from '@/components/HomePage'
import Find from '@/components/Find'
import Myself from '@/components/Myself'
import Indent from '@/components/Indent'
import List from '@/components/List'
import Login from '@/components/Login'
import Aboutus from '@/components/Aboutus'
import Detail from '@/components/Detail'
import Commodity from '../components/detail/commodity'
import Appraise from '../components/detail/appraise'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HomePage',
      component: HomePage
    },
    {
      path:'/find',
      component:Find
    },
     {
      path:'/list',
      component:List
    },
    {
      path:'/indent',
      component:Indent
    },
    {
      path:'/myself',
      component:Myself
    },
    {
      path:'/Login',
      component:Login
    },
    {
      path:'/aboutus',
      component: Aboutus
    },
    {
      path:'/detail',
      component:Detail,
      children:[
        {
          path:'commodity',
          component:Commodity
        },
        {
          path:'appraise',
          component:Appraise
        }
      ]
    }
  ]
})
